<head>
    <link rel="stylesheet" type="text/css" href="../../style/main.css">
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $(".baseURI").text(parent.baseURI);
            parent.location.hash = "resource";
        });
        function show(nb) {
            $('#content > div:eq('+Math.abs(nb-1)+')').hide();$('#content > div:eq('+nb+')').show();
            $('#view li:eq('+Math.abs(nb-1)+')').css('font-weight','normal');$('#view li:eq('+nb+')').css('font-weight','bold');
            scroll(0,0);
            setHeight();
        }
        function setHeight() {
            parent.document.getElementById('external').style.height=(document.getElementById('content').offsetHeight)+'px'
        }
        function init() {
            show(0);
        }

    </script>
</head>
<body onload="init()">
    <div id="content">
        <h1>Resource Webservice</h1>
        <ul id="view">
            <li><a onclick="show(0);">Web View</a></li>
            <li><a onclick="show(1);">REST API</a></li>
        </ul>
        <p>
           <b>BaseUri:</b> <span class="baseURI"></span>resource
        </p>
        <p>
            The Resource Webservice offers all functionalities to work with resources, i.e. creation, updating, retrieval and deletion. The RDF URIs of internal resources created by the system always link back to the Resource Webservice, i.e. when the URI of a RDF resource is entered in the browser, it should call the appropriate method of the Resource Webservice. It is also possible to work with external resource URIs by using existing services and uri parameters. Webservices in the Resource Webservice create/accept content in RDF/JSON or RDF/XML format (possibly other formats) based on the HTTP headers of the request.
        </p>
        <div>TODO: click on REST API</div>
        <div>
        <h2>Create Resource</h2><div>Hi</div>
        <p>
            <b>Description:</b> You can create resources in 3 different ways.
            <ol>
                <li>Add a new local resource. Let the system define a uuid (Unique Uniform Identifier) for the resource.</li>
                <li>Add a new local resource by passing a uuid as path parameter.</li>
                <li>Add a new remote resource (with a different base URI).</li>
            </ol>
            <b>Method:</b> POST<br>
            <b>URL parameters:</b>
            <table>
                <tr><td><b>uri:</b></td><td>uri of the remote resource </td><td>OPTIONAL</td></tr>
            </table>
            <b>Method:</b> POST<br>
            <b>Path parameters:</b>
            <ul>
                <li><b>uuid:</b> Unique Uniform Identifier for the resource (OPTIONAL)</li>
            </ul>
        </p>
        <h2>Update Resource</h2>
        <p>

        </p>
        <h2>Get Resource</h2>
        <p>

        </p>
        <h2>Delete Resource</h2>
        <p>

        </p>
        </div>
    </div>
</body>